﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication10
{
    public partial class MasterUpdateResume : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            Resume R = new Resume();
            R.ResumeID = Convert.ToInt32(TextBox1.Text);
            R.ResumeTitle = txtRsumeTitle.Text;
            R.Name = Name.Text;
            R.Address = Address.Text;
            R.Education = Education.Text;
            R.Experience = Experience.Text;
            R.Skills = Skills.Text;


            Resume.UpdateResume(R);
        }

        protected void Button3_Click(object sender, EventArgs e)
        {
           Resume R = Resume.GetResumeByID (TextBox1.Text);
           txtRsumeTitle.Text = R.ResumeTitle;
            Name.Text =R.Name;
           Address.Text=R.Address ;
           Education.Text= R.Education;
           Experience.Text= R.Experience;
           Skills.Text=R.Skills;

           Image1.ImageUrl = R.imagePath ;
        }
    }
}